package com.lyf.scm.common.constants;

import java.io.Serializable;

/**
 * @Description: 公共常量
 * <p>
 * @Author: chuwenchao  2019/5/30
 */
public class CommonConstants implements Serializable {

    public static final String SUCCESS = "success";

    public static final String FAILURE = "failure";

    public static final String CODE_SUCCESS = "0";

    public static final String CODE_FAILURE = "1";

    public static final String SAP_SUCCESS = "S";

    public static final String SAP_FAILURE = "E";

    public static final Integer ZERO = 0;

    public static final Integer ONE = 1;

    public static final Integer TWO = 2;

    public static final Integer THREE = 3;

    public static final Integer FOUR = 4;

    public static final Integer FIVE = 5;

    /**
     * 6改成7，需求从6周变成7周
     */
    public static final Integer SIX = 7;

    public static final Integer DAY_SIZE = 14;

    public static final Integer WEEK_SIZE = 14;

    public static final Integer WEEK_TARGET_SIZE = 13;

    public static final Integer MONTH_SIZE = 14;

    public static final Integer WAREHOUSE_TYPE = 16;

    public static final Integer CHANNEL_LEVEL_TOW = 2;

    public static final Integer CHANNEL_LEVEL_ONE = 1;

    public static final Integer AREA_LEVEL_FOUR = 4;

    public static final Integer AREA_LEVEL_THREE = 3;

    public static final Integer AREA_LEVEL_TWO = 2;

    public static final Integer AREA_LEVEL_ONE = 1;

    public static final Integer CATEGORY_LEVEL_FOUR = 5;

    public static final Integer CATEGORY_LEVEL_THREE = 4;

    public static final Integer CATEGORY_LEVEL_TWO = 3;

    public static final Integer CATEGORY_LEVEL_ONE = 2;

    public static final Integer OTHER_PLAN_LEVEL_THREE = 3;

    public static final Integer OTHER_PLAN_LEVEL_TWO = 2;

    public static final Integer OTHER_PLAN_LEVEL_ONE = 1;

    public static final Integer PLAN_OTHER_IMPORT_MAX = 10000;

    public static final Integer PLAN_OTHER_INSERT_MAX = 20000;

    public static final Integer THREE_DECIMAL = 3;

    public static final Integer BIG_DATA_PAGE_SIZE = 5000;
    /**
     * 大数据定时任务每日触发时间
     */
    public static final String BIG_DATA_PULL_TIME = "22:00:00";
    /**
     * 大数据定时任务每日触发时间前后偏移量
     */
    public static final int BIG_DATA_OFFSET_VALUE = 2;
    /**
     * 五位小数
     */
    public static final Integer FIVE_DECIMAL = 5;

    /**
     * 七个小数
     */
    public static final Integer SEVEN_DECIMAL = 7;

    public static final Integer PAGE_SIZE = 100;

    public static final Integer PAGE_NUM = 1;

    /**
     * 省份为江苏省，城市必填
     */
    public static final String PRO_NAME = "江苏省";

    public static final String CONFIRM = "确认量";

    public static final String LAST_CONFIRM = "上次确认量";

    public static final String SUB_CONFIRM = "下级确认量";
    /**
     * es懒加载查询缓存人员信息所处于的查询状态：1 空闲，有数据可加载  2 有数据，正在加载中  3 已加载完毕，无数据可加载
     */
    public static final Integer LOAD_STATUS_WAITING = 1;

    public static final Integer LOAD_STATUS_RUNNING = 2;

    public static final Integer LOAD_STATUS_STOPED = 3;

    /**
     * 缓存前缀:es懒加载查询缓存人员信息
     */
    public static final String REDIS_CACHE_PREFIX_MEM_QUERY = "PLAN_MEM_QUERY::";
    /**
     * 缓存前缀:es懒加载查询结果
     */
    public static final String REDIS_CACHE_PREFIX_DATALIST = "PLAN_DATALIST::";
    /**
     * Redis缓存key：需求计划
     */
    public static final String REDIS_CACHE_REQUIREMENT = "PLAN::REQUIREMENT";
    /**
     * Redis缓存key：直营预测
     */
    public static final String REDIS_CACHE_DIRECT_FORECAST = "PLAN::DIRECT_FORECAST";
    /**
     * Redis缓存key：其它渠道计划
     */
    public static final String REDIS_CACHE_OTHER_CHANNEL = "PLAN::OTHER_CHANNEL";
    /**
     * Redis缓存key：销售计划
     */
    public static final String REDIS_CACHE_SALE_PLAN = "PLAN::SALE_PLAN";
    /**
     * 每次取es分组size
     */
    public static final Integer DEFAULT_PULLED_SIZE = 100;
    /**
     * 默认缓存的最小尺寸
     */
    public static final Integer MINIMUM_CACHE_SIZE = 100;
}
